package com.wuchao.spring.ioc.construtor;

import com.wuchao.entity.Entry;

/**
 * @Author wuchao66
 * @Date 2023/9/23 11:26
 * @PackageName:com.wuchao.spring.ioc.construtor
 * @ClassName: Cons
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class Cons {//构造注入
    private Entry entry;
    private String name;
    public Cons(){}
    public Cons(Entry entry,String name){
        this.entry=entry;
        this.name=name;
    }
    public void show(){
        System.out.println(entry.getTitle()+name);
    }
}
